package srcInterviewPrep;

public class BTNode 
{
    public int data;
    public BTNode left;
    public BTNode right;
    
    public BTNode(int data)
    {
        this.data = data;
    }
    
    public void PrintInOrderTraversal()
    {
        if (this == null)
        {
            return;
        }
        
        System.out.print(this.data);
        System.out.print(", ");
        
        if (this.left != null)
        {
            this.left.PrintInOrderTraversal();
        }
        
        if (this.right != null)
        {
            this.right.PrintInOrderTraversal();
        }
    }
}
